<?php
$db = connect();
$query = "SELECT * FROM peliculas";
$result = $db->query($query);
?>
<h2>Borrar película</h2>
<form action="index.php">
<?php
$counter = 0;
while($row = $result->fetch_object()){
    echo '<input type="checkbox" name="film' . $counter . '" value="' . $row->cod_pelicula .'"/>'. "<em>$row->titulo</em>,  $row->genero, $row->pais, $row->anyo<br/>";
    $counter++;
}
?>
    <input type="hidden" name="do" value="deleteFilm"/>
    <input type="submit"/>
</form>
